<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/system/layui/css/layui.css" media="all">
</head>
    <body>
        <blockquote class="layui-elem-quote quoteBox">
            <form class="layui-form">
                <br>
                <a class="layui-btn layui-btn-normal" onclick="insert()" th:if="${num!=0||add!=null}" th:text="添加菜单"></a>
                <table id="resourceList" lay-filter="resourceList"></table>
            </form>
        </blockquote>
    </body>
    <script src="/system/layui/layui.js"></script>
    <script type="text/javascript" src="/system/js/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="/sysResource/sysResource.js"></script>
    <script type="text/html" id="bar">
        <a class="layui-btn layui-btn-xs" lay-event="tableUpdate" th:if="${num!=0||update!=null}" th:text="编辑"></a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="tableDelete" th:if="${num!=0||delete!=null}" th:text="删除"></a>
        {{# if(d.pid != 0){ }}
        <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="grant" th:if="${post!=null||num!=0||grant!=null}" th:text="权限配置"></a>
        {{# } }}
    </script>
</html>